home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / jikes-1.02 / src / configure < prev    next >
Encoding:
Text File  |  1999-09-05  |  45.2 KB  |  1,483 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-jikespg=PROG     location of jikes parser generator (optional)"
  16. ac_help="$ac_help
  17.   --with-icc=PROG         use the IBM Cset++ compiler, optional PROG can be given instead of searching on the PATH"
  18. ac_help="$ac_help
  19.   --with-CC=PROG          use the AT&T CC compiler, optional PROG can be given instead of searching on the PATH"
  20. ac_help="$ac_help
  21.   --enable-symbols        build with debugging symbols"
  22.  
  23. # Initialize some variables set by options.
  24. # The variables have the same names as the options, with
  25. # dashes changed to underlines.
  26. build=NONE
  27. cache_file=./config.cache
  28. exec_prefix=NONE
  29. host=NONE
  30. no_create=
  31. nonopt=NONE
  32. no_recursion=
  33. prefix=NONE
  34. program_prefix=NONE
  35. program_suffix=NONE
  36. program_transform_name=s,x,x,
  37. silent=
  38. site=
  39. srcdir=
  40. target=NONE
  41. verbose=
  42. x_includes=NONE
  43. x_libraries=NONE
  44. bindir='${exec_prefix}/bin'
  45. sbindir='${exec_prefix}/sbin'
  46. libexecdir='${exec_prefix}/libexec'
  47. datadir='${prefix}/share'
  48. sysconfdir='${prefix}/etc'
  49. sharedstatedir='${prefix}/com'
  50. localstatedir='${prefix}/var'
  51. libdir='${exec_prefix}/lib'
  52. includedir='${prefix}/include'
  53. oldincludedir='/usr/include'
  54. infodir='${prefix}/info'
  55. guidedir='${prefix}/guide'
  56. htmldir='${prefix}/html'
  57. psdir='${prefix}/ps'
  58. dvidir='${prefix}/dvi'
  59. mandir='${prefix}/man'
  60.  
  61. # Initialize some other variables.
  62. subdirs=
  63. MFLAGS= MAKEFLAGS=
  64. SHELL=${CONFIG_SHELL-/bin/sh}
  65. # Maximum number of lines to put in a shell here document.
  66. ac_max_here_lines=12
  67.  
  68. ac_prev=
  69. for ac_option
  70. do
  71.  
  72.   # If the previous option needs an argument, assign it.
  73.   if test -n "$ac_prev"; then
  74.     eval "$ac_prev=\$ac_option"
  75.     ac_prev=
  76.     continue
  77.   fi
  78.  
  79.   case "$ac_option" in
  80.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  81.   *) ac_optarg= ;;
  82.   esac
  83.  
  84.   # Accept the important Cygnus configure options, so we can diagnose typos.
  85.  
  86.   case "$ac_option" in
  87.  
  88.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  89.     ac_prev=bindir ;;
  90.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  91.     bindir="$ac_optarg" ;;
  92.  
  93.   -build | --build | --buil | --bui | --bu)
  94.     ac_prev=build ;;
  95.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  96.     build="$ac_optarg" ;;
  97.  
  98.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  99.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  100.     ac_prev=cache_file ;;
  101.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  102.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  103.     cache_file="$ac_optarg" ;;
  104.  
  105.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  106.     ac_prev=datadir ;;
  107.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  108.   | --da=*)
  109.     datadir="$ac_optarg" ;;
  110.  
  111.   -disable-* | --disable-*)
  112.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  113.     # Reject names that are not valid shell variable names.
  114.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  115.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  116.     fi
  117.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  118.     eval "enable_${ac_feature}=no" ;;
  119.  
  120.   -enable-* | --enable-*)
  121.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  122.     # Reject names that are not valid shell variable names.
  123.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  124.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  125.     fi
  126.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  127.     case "$ac_option" in
  128.       *=*) ;;
  129.       *) ac_optarg=yes ;;
  130.     esac
  131.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  132.  
  133.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  134.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  135.   | --exec | --exe | --ex)
  136.     ac_prev=exec_prefix ;;
  137.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  138.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  139.   | --exec=* | --exe=* | --ex=*)
  140.     exec_prefix="$ac_optarg" ;;
  141.  
  142.   -gas | --gas | --ga | --g)
  143.     # Obsolete; use --with-gas.
  144.     with_gas=yes ;;
  145.  
  146.   -help | --help | --hel | --he)
  147.     # Omit some internal or obsolete options to make the list less imposing.
  148.     # This message is too long to be a string in the A/UX 3.1 sh.
  149.     cat << EOF
  150. Usage: configure [options] [host]
  151. Options: [defaults in brackets after descriptions]
  152. Configuration:
  153.   --cache-file=FILE       cache test results in FILE
  154.   --help                  print this message
  155.   --no-create             do not create output files
  156.   --quiet, --silent       do not print \`checking...' messages
  157.   --version               print the version of autoconf that created configure
  158. Directory and file names:
  159.   --prefix=PREFIX         install architecture-independent files in PREFIX
  160.                           [$ac_default_prefix]
  161.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  162.                           [same as prefix]
  163.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  164.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  165.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  166.   --datadir=DIR           read-only architecture-independent data in DIR
  167.                           [PREFIX/share]
  168.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  169.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  170.                           [PREFIX/com]
  171.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  172.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  173.   --includedir=DIR        C header files in DIR [PREFIX/include]
  174.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  175.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  176.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  177.   --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  178.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  179.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  180.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  181.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  182.   --program-prefix=PREFIX prepend PREFIX to installed program names
  183.   --program-suffix=SUFFIX append SUFFIX to installed program names
  184.   --program-transform-name=PROGRAM
  185.                           run sed PROGRAM on installed program names
  186. EOF
  187.     cat << EOF
  188. Host type:
  189.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  190.   --host=HOST             configure for HOST [guessed]
  191.   --target=TARGET         configure for TARGET [TARGET=HOST]
  192. Features and packages:
  193.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  194.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  195.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  196.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  197.   --x-includes=DIR        X include files are in DIR
  198.   --x-libraries=DIR       X library files are in DIR
  199. EOF
  200.     if test -n "$ac_help"; then
  201.       echo "--enable and --with options recognized:$ac_help"
  202.     fi
  203.     exit 0 ;;
  204.  
  205.   -host | --host | --hos | --ho)
  206.     ac_prev=host ;;
  207.   -host=* | --host=* | --hos=* | --ho=*)
  208.     host="$ac_optarg" ;;
  209.  
  210.   -includedir | --includedir | --includedi | --included | --include \
  211.   | --includ | --inclu | --incl | --inc)
  212.     ac_prev=includedir ;;
  213.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  214.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  215.     includedir="$ac_optarg" ;;
  216.  
  217.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  218.     ac_prev=infodir ;;
  219.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  220.     infodir="$ac_optarg" ;;
  221.  
  222.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  223.    ac_prev=guidedir ;;
  224.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  225.  
  226.  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  227.    ac_prev=htmldir ;;
  228.  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  229.  
  230.  -psdir | --psdir | --psdi | --psd | --ps)
  231.    ac_prev=psdir ;;
  232.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  233.  
  234.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  235.    ac_prev=dvidir ;;
  236.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  237.  
  238.   -libdir | --libdir | --libdi | --libd)
  239.     ac_prev=libdir ;;
  240.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  241.     libdir="$ac_optarg" ;;
  242.  
  243.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  244.   | --libexe | --libex | --libe)
  245.     ac_prev=libexecdir ;;
  246.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  247.   | --libexe=* | --libex=* | --libe=*)
  248.     libexecdir="$ac_optarg" ;;
  249.  
  250.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  251.   | --localstate | --localstat | --localsta | --localst \
  252.   | --locals | --local | --loca | --loc | --lo)
  253.     ac_prev=localstatedir ;;
  254.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  255.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  256.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  257.     localstatedir="$ac_optarg" ;;
  258.  
  259.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  260.     ac_prev=mandir ;;
  261.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  262.     mandir="$ac_optarg" ;;
  263.  
  264.   -nfp | --nfp | --nf)
  265.     # Obsolete; use --without-fp.
  266.     with_fp=no ;;
  267.  
  268.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  269.   | --no-cr | --no-c)
  270.     no_create=yes ;;
  271.  
  272.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  273.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  274.     no_recursion=yes ;;
  275.  
  276.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  277.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  278.   | --oldin | --oldi | --old | --ol | --o)
  279.     ac_prev=oldincludedir ;;
  280.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  281.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  282.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  283.     oldincludedir="$ac_optarg" ;;
  284.  
  285.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  286.     ac_prev=prefix ;;
  287.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  288.     prefix="$ac_optarg" ;;
  289.  
  290.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  291.   | --program-pre | --program-pr | --program-p)
  292.     ac_prev=program_prefix ;;
  293.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  294.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  295.     program_prefix="$ac_optarg" ;;
  296.  
  297.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  298.   | --program-suf | --program-su | --program-s)
  299.     ac_prev=program_suffix ;;
  300.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  301.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  302.     program_suffix="$ac_optarg" ;;
  303.  
  304.   -program-transform-name | --program-transform-name \
  305.   | --program-transform-nam | --program-transform-na \
  306.   | --program-transform-n | --program-transform- \
  307.   | --program-transform | --program-transfor \
  308.   | --program-transfo | --program-transf \
  309.   | --program-trans | --program-tran \
  310.   | --progr-tra | --program-tr | --program-t)
  311.     ac_prev=program_transform_name ;;
  312.   -program-transform-name=* | --program-transform-name=* \
  313.   | --program-transform-nam=* | --program-transform-na=* \
  314.   | --program-transform-n=* | --program-transform-=* \
  315.   | --program-transform=* | --program-transfor=* \
  316.   | --program-transfo=* | --program-transf=* \
  317.   | --program-trans=* | --program-tran=* \
  318.   | --progr-tra=* | --program-tr=* | --program-t=*)
  319.     program_transform_name="$ac_optarg" ;;
  320.  
  321.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  322.   | -silent | --silent | --silen | --sile | --sil)
  323.     silent=yes ;;
  324.  
  325.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  326.     ac_prev=sbindir ;;
  327.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  328.   | --sbi=* | --sb=*)
  329.     sbindir="$ac_optarg" ;;
  330.  
  331.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  332.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  333.   | --sharedst | --shareds | --shared | --share | --shar \
  334.   | --sha | --sh)
  335.     ac_prev=sharedstatedir ;;
  336.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  337.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  338.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  339.   | --sha=* | --sh=*)
  340.     sharedstatedir="$ac_optarg" ;;
  341.  
  342.   -site | --site | --sit)
  343.     ac_prev=site ;;
  344.   -site=* | --site=* | --sit=*)
  345.     site="$ac_optarg" ;;
  346.  
  347.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  348.     ac_prev=srcdir ;;
  349.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  350.     srcdir="$ac_optarg" ;;
  351.  
  352.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  353.   | --syscon | --sysco | --sysc | --sys | --sy)
  354.     ac_prev=sysconfdir ;;
  355.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  356.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  357.     sysconfdir="$ac_optarg" ;;
  358.  
  359.   -target | --target | --targe | --targ | --tar | --ta | --t)
  360.     ac_prev=target ;;
  361.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  362.     target="$ac_optarg" ;;
  363.  
  364.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  365.     verbose=yes ;;
  366.  
  367.   -version | --version | --versio | --versi | --vers)
  368.     echo "configure generated by autoconf version 2.13"
  369.     exit 0 ;;
  370.  
  371.   -with-* | --with-*)
  372.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  373.     # Reject names that are not valid shell variable names.
  374.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  375.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  376.     fi
  377.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  378.     case "$ac_option" in
  379.       *=*) ;;
  380.       *) ac_optarg=yes ;;
  381.     esac
  382.     eval "with_${ac_package}='$ac_optarg'" ;;
  383.  
  384.   -without-* | --without-*)
  385.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  386.     # Reject names that are not valid shell variable names.
  387.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  388.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  389.     fi
  390.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  391.     eval "with_${ac_package}=no" ;;
  392.  
  393.   --x)
  394.     # Obsolete; use --with-x.
  395.     with_x=yes ;;
  396.  
  397.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  398.   | --x-incl | --x-inc | --x-in | --x-i)
  399.     ac_prev=x_includes ;;
  400.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  401.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  402.     x_includes="$ac_optarg" ;;
  403.  
  404.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  405.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  406.     ac_prev=x_libraries ;;
  407.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  408.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  409.     x_libraries="$ac_optarg" ;;
  410.  
  411.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  412.     ;;
  413.  
  414.   *)
  415.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  416.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  417.     fi
  418.     if test "x$nonopt" != xNONE; then
  419.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  420.     fi
  421.     nonopt="$ac_option"
  422.     ;;
  423.  
  424.   esac
  425. done
  426.  
  427. if test -n "$ac_prev"; then
  428.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  429. fi
  430.  
  431. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  432.  
  433. # File descriptor usage:
  434. # 0 standard input
  435. # 1 file creation
  436. # 2 errors and warnings
  437. # 3 some systems may open it to /dev/tty
  438. # 4 used on the Kubota Titan
  439. # 6 checking for... messages and results
  440. # 5 compiler messages saved in config.log
  441. if test "$silent" = yes; then
  442.   exec 6>/dev/null
  443. else
  444.   exec 6>&1
  445. fi
  446. exec 5>./config.log
  447.  
  448. echo "\
  449. This file contains any messages produced by compilers while
  450. running configure, to aid debugging if configure makes a mistake.
  451. " 1>&5
  452.  
  453. # Strip out --no-create and --no-recursion so they do not pile up.
  454. # Also quote any args containing shell metacharacters.
  455. ac_configure_args=
  456. for ac_arg
  457. do
  458.   case "$ac_arg" in
  459.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  460.   | --no-cr | --no-c) ;;
  461.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  462.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  463.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  464.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  465.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  466.   esac
  467. done
  468.  
  469. # NLS nuisances.
  470. # Only set these to C if already set.  These must not be set unconditionally
  471. # because not all systems understand e.g. LANG=C (notably SCO).
  472. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  473. # Non-C LC_CTYPE values break the ctype check.
  474. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  475. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  476. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  477. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  478.  
  479. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  480. rm -rf conftest* confdefs.h
  481. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  482. echo > confdefs.h
  483.  
  484. # A filename unique to this package, relative to the directory that
  485. # configure is in, which we can look for to find out if srcdir is correct.
  486. ac_unique_file=jikes.cpp
  487.  
  488. # Find the source files, if location was not specified.
  489. if test -z "$srcdir"; then
  490.   ac_srcdir_defaulted=yes
  491.   # Try the directory containing this script, then its parent.
  492.   ac_prog=$0
  493.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  494.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  495.   srcdir=$ac_confdir
  496.   if test ! -r $srcdir/$ac_unique_file; then
  497.     srcdir=..
  498.   fi
  499. else
  500.   ac_srcdir_defaulted=no
  501. fi
  502. if test ! -r $srcdir/$ac_unique_file; then
  503.   if test "$ac_srcdir_defaulted" = yes; then
  504.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  505.   else
  506.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  507.   fi
  508. fi
  509. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  510.  
  511. # Prefer explicitly selected file to automatically selected ones.
  512. if test -z "$CONFIG_SITE"; then
  513.   if test "x$prefix" != xNONE; then
  514.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  515.   else
  516.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  517.   fi
  518. fi
  519. for ac_site_file in $CONFIG_SITE; do
  520.   if test -r "$ac_site_file"; then
  521.     echo "loading site script $ac_site_file"
  522.     . "$ac_site_file"
  523.   fi
  524. done
  525.  
  526. if test -r "$cache_file"; then
  527.   echo "loading cache $cache_file"
  528.   . $cache_file
  529. else
  530.   echo "creating cache $cache_file"
  531.   > $cache_file
  532. fi
  533.  
  534. ac_ext=c
  535. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  536. ac_cpp='$CPP $CPPFLAGS'
  537. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  538. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  539. cross_compiling=$ac_cv_prog_cc_cross
  540.  
  541. ac_exeext=
  542. ac_objext=o
  543. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  544.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  545.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  546.     ac_n= ac_c='
  547. ' ac_t='    '
  548.   else
  549.     ac_n=-n ac_c= ac_t=
  550.   fi
  551. else
  552.   ac_n= ac_c='\c' ac_t=
  553. fi
  554.  
  555.  
  556.  
  557. # Convert srcdir into full path name
  558. srcdir=`cd $srcdir ; pwd`
  559. echo "srcdir is $srcdir"
  560.  
  561.  
  562. #--------------------------------------------------------------------
  563. #    see if --with-jikespg location is given on the command line
  564. #--------------------------------------------------------------------
  565.  
  566. # Check whether --with-jikespg or --without-jikespg was given.
  567. if test "${with_jikespg+set}" = set; then
  568.   withval="$with_jikespg"
  569.   JIKESPG=$withval
  570. else
  571.   JIKESPG=NONE
  572. fi
  573.  
  574.  
  575. if test "$JIKESPG" != "NONE"; then
  576.     if test ! -f "$JIKESPG" || test ! -x "$JIKESPG"; then
  577.         { echo "configure: error: jikespg argument '$JIKESPG' is not a file or is not executable" 1>&2; exit 1; }
  578.     fi
  579. else
  580.     JIKESPG=jikespg
  581. fi
  582.  
  583.  
  584. #--------------------------------------------------------------------
  585. #    see if --with-icc is given on the command line
  586. #--------------------------------------------------------------------
  587.  
  588. # Check whether --with-icc or --without-icc was given.
  589. if test "${with_icc+set}" = set; then
  590.   withval="$with_icc"
  591.   CC=$withval
  592. else
  593.   CC=NONE
  594. fi
  595.  
  596.  
  597. if test "$CC" != "NONE"; then
  598.     if test "$CC" = yes; then
  599.         # Extract the first word of "icc", so it can be a program name with args.
  600. set dummy icc; ac_word=$2
  601. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  602. echo "configure:603: checking for $ac_word" >&5
  603. if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  604.   echo $ac_n "(cached) $ac_c" 1>&6
  605. else
  606.   case "$CC" in
  607.   /*)
  608.   ac_cv_path_CC="$CC" # Let the user override the test with a path.
  609.   ;;
  610.   ?:/*)             
  611.   ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  612.   ;;
  613.   *)
  614.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  615.   ac_dummy="$PATH"
  616.   for ac_dir in $ac_dummy; do 
  617.     test -z "$ac_dir" && ac_dir=.
  618.     if test -f $ac_dir/$ac_word; then
  619.       ac_cv_path_CC="$ac_dir/$ac_word"
  620.       break
  621.     fi
  622.   done
  623.   IFS="$ac_save_ifs"
  624.   ;;
  625. esac
  626. fi
  627. CC="$ac_cv_path_CC"
  628. if test -n "$CC"; then
  629.   echo "$ac_t""$CC" 1>&6
  630. else
  631.   echo "$ac_t""no" 1>&6
  632. fi
  633.  
  634.  
  635.         if test "$CC" = ""; then
  636.             # Extract the first word of "xlC", so it can be a program name with args.
  637. set dummy xlC; ac_word=$2
  638. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  639. echo "configure:640: checking for $ac_word" >&5
  640. if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  641.   echo $ac_n "(cached) $ac_c" 1>&6
  642. else
  643.   case "$CC" in
  644.   /*)
  645.   ac_cv_path_CC="$CC" # Let the user override the test with a path.
  646.   ;;
  647.   ?:/*)             
  648.   ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  649.   ;;
  650.   *)
  651.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  652.   ac_dummy="$PATH"
  653.   for ac_dir in $ac_dummy; do 
  654.     test -z "$ac_dir" && ac_dir=.
  655.     if test -f $ac_dir/$ac_word; then
  656.       ac_cv_path_CC="$ac_dir/$ac_word"
  657.       break
  658.     fi
  659.   done
  660.   IFS="$ac_save_ifs"
  661.   ;;
  662. esac
  663. fi
  664. CC="$ac_cv_path_CC"
  665. if test -n "$CC"; then
  666.   echo "$ac_t""$CC" 1>&6
  667. else
  668.   echo "$ac_t""no" 1>&6
  669. fi
  670.  
  671.  
  672.             if test "$CC" = ""; then
  673.                 { echo "configure: error: could not find icc or xlC on your PATH." 1>&2; exit 1; }
  674.             fi
  675.         fi
  676.     fi
  677.  
  678.     if test ! -f "$CC" || test ! -x "$CC"; then
  679.         { echo "configure: error: argument '$CC' is not a file or is not executable" 1>&2; exit 1; }
  680.     fi
  681.  
  682.     CC_NAME=icc
  683.     CCREQUIREDFLAGS="-c -DICC"
  684.     CCOPTFLAGS="-O2"
  685.     CCDEBUGFLAGS="-DTEST"
  686.     LD=$CC
  687.     LDDEBUGFLAGS="-g"
  688.     LDFLAGS='-L. -o $(EXECUTABLE)'
  689. fi
  690.  
  691.  
  692.  
  693.  
  694. #--------------------------------------------------------------------
  695. #    see if --with-CC is given on the command line
  696. #--------------------------------------------------------------------
  697.  
  698. # Check whether --with-CC or --without-CC was given.
  699. if test "${with_CC+set}" = set; then
  700.   withval="$with_CC"
  701.   CC=$withval
  702. else
  703.   CC=NONE
  704. fi
  705.  
  706.  
  707. if test "$CC" != "NONE"; then
  708.     if test "$CC" = yes; then
  709.         # Extract the first word of "CC", so it can be a program name with args.
  710. set dummy CC; ac_word=$2
  711. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  712. echo "configure:713: checking for $ac_word" >&5
  713. if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  714.   echo $ac_n "(cached) $ac_c" 1>&6
  715. else
  716.   case "$CC" in
  717.   /*)
  718.   ac_cv_path_CC="$CC" # Let the user override the test with a path.
  719.   ;;
  720.   ?:/*)             
  721.   ac_cv_path_CC="$CC" # Let the user override the test with a dos path.
  722.   ;;
  723.   *)
  724.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  725.   ac_dummy="$PATH"
  726.   for ac_dir in $ac_dummy; do 
  727.     test -z "$ac_dir" && ac_dir=.
  728.     if test -f $ac_dir/$ac_word; then
  729.       ac_cv_path_CC="$ac_dir/$ac_word"
  730.       break
  731.     fi
  732.   done
  733.   IFS="$ac_save_ifs"
  734.   ;;
  735. esac
  736. fi
  737. CC="$ac_cv_path_CC"
  738. if test -n "$CC"; then
  739.   echo "$ac_t""$CC" 1>&6
  740. else
  741.   echo "$ac_t""no" 1>&6
  742. fi
  743.  
  744.         if test "$CC" = ""; then
  745.             { echo "configure: error: could not find CC on your PATH." 1>&2; exit 1; }
  746.         fi
  747.     fi
  748.  
  749.     if test ! -f "$CC" || test ! -x "$CC"; then
  750.         { echo "configure: error: argument '$CC' is not a file or is not executable" 1>&2; exit 1; }
  751.     fi
  752.  
  753.     CC_NAME=CC
  754.  
  755.     CCREQUIREDFLAGS="-c -ansi"
  756.     CCOPTFLAGS="-fast"
  757.     CCDEBUGFLAGS="-DTEST -g -xs"
  758.     LD=$CC
  759.     LDDEBUGFLAGS="-g"
  760.     LDFLAGS='-L. -o $(EXECUTABLE)'
  761. fi
  762.  
  763. #--------------------------------------------------------------------
  764. # If no other compiler was given as a --with option then we use g++
  765. #--------------------------------------------------------------------
  766.  
  767. if test "$CC_NAME" = ""; then
  768.     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  769. do
  770. # Extract the first word of "$ac_prog", so it can be a program name with args.
  771. set dummy $ac_prog; ac_word=$2
  772. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  773. echo "configure:774: checking for $ac_word" >&5
  774. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  775.   echo $ac_n "(cached) $ac_c" 1>&6
  776. else
  777.   if test -n "$CXX"; then
  778.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  779. else
  780.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  781.   ac_dummy="$PATH"
  782.   for ac_dir in $ac_dummy; do
  783.     test -z "$ac_dir" && ac_dir=.
  784.     if test -f $ac_dir/$ac_word; then
  785.       ac_cv_prog_CXX="$ac_prog"
  786.       break
  787.     fi
  788.   done
  789.   IFS="$ac_save_ifs"
  790. fi
  791. fi
  792. CXX="$ac_cv_prog_CXX"
  793. if test -n "$CXX"; then
  794.   echo "$ac_t""$CXX" 1>&6
  795. else
  796.   echo "$ac_t""no" 1>&6
  797. fi
  798.  
  799. test -n "$CXX" && break
  800. done
  801. test -n "$CXX" || CXX="gcc"
  802.  
  803.  
  804. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  805. echo "configure:806: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  806.  
  807. ac_ext=C
  808. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  809. ac_cpp='$CXXCPP $CPPFLAGS'
  810. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  811. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  812. cross_compiling=$ac_cv_prog_cxx_cross
  813.  
  814. cat > conftest.$ac_ext << EOF
  815.  
  816. #line 817 "configure"
  817. #include "confdefs.h"
  818.  
  819. int main(){return(0);}
  820. EOF
  821. if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  822.   ac_cv_prog_cxx_works=yes
  823.   # If we can't run a trivial program, we are probably using a cross compiler.
  824.   if (./conftest; exit) 2>/dev/null; then
  825.     ac_cv_prog_cxx_cross=no
  826.   else
  827.     ac_cv_prog_cxx_cross=yes
  828.   fi
  829. else
  830.   echo "configure: failed program was:" >&5
  831.   cat conftest.$ac_ext >&5
  832.   ac_cv_prog_cxx_works=no
  833. fi
  834. rm -fr conftest*
  835. ac_ext=c
  836. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  837. ac_cpp='$CPP $CPPFLAGS'
  838. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  839. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  840. cross_compiling=$ac_cv_prog_cc_cross
  841.  
  842. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  843. if test $ac_cv_prog_cxx_works = no; then
  844.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  845. fi
  846. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  847. echo "configure:848: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  848. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  849. cross_compiling=$ac_cv_prog_cxx_cross
  850.  
  851. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  852. echo "configure:853: checking whether we are using GNU C++" >&5
  853. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  854.   echo $ac_n "(cached) $ac_c" 1>&6
  855. else
  856.   cat > conftest.C <<EOF
  857. #ifdef __GNUC__
  858.   yes;
  859. #endif
  860. EOF
  861. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  862.   ac_cv_prog_gxx=yes
  863. else
  864.   ac_cv_prog_gxx=no
  865. fi
  866. fi
  867.  
  868. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  869.  
  870. if test $ac_cv_prog_gxx = yes; then
  871.   GXX=yes
  872. else
  873.   GXX=
  874. fi
  875.  
  876. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  877. ac_save_CXXFLAGS="$CXXFLAGS"
  878. CXXFLAGS=
  879. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  880. echo "configure:881: checking whether ${CXX-g++} accepts -g" >&5
  881. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  882.   echo $ac_n "(cached) $ac_c" 1>&6
  883. else
  884.   echo 'void f(){}' > conftest.cc
  885. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  886.   ac_cv_prog_cxx_g=yes
  887. else
  888.   ac_cv_prog_cxx_g=no
  889. fi
  890. rm -f conftest*
  891.  
  892. fi
  893.  
  894. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  895. if test "$ac_test_CXXFLAGS" = set; then
  896.   CXXFLAGS="$ac_save_CXXFLAGS"
  897. elif test $ac_cv_prog_cxx_g = yes; then
  898.   if test "$GXX" = yes; then
  899.     CXXFLAGS="-g -O2"
  900.   else
  901.     CXXFLAGS="-g"
  902.   fi
  903. else
  904.   if test "$GXX" = yes; then
  905.     CXXFLAGS="-O2"
  906.   else
  907.     CXXFLAGS=
  908.   fi
  909. fi
  910.  
  911.  
  912.     CC_NAME=$CXX
  913.     CC=$CXX
  914.  
  915.     TEST_BOOL="true"
  916.     CCREQUIREDFLAGS="-c -ansi"
  917.     CCOPTFLAGS="-O2"
  918.     CCDEBUGFLAGS="-DTEST -g"
  919.     LD=$CC
  920.     LDDEBUGFLAGS="-g"
  921.     LDFLAGS='-L. -o $(EXECUTABLE)'
  922.  
  923.     if test "$GXX" != "yes"; then
  924.         LDFLAGS="$LDFLAGS -lm"
  925.     fi
  926. fi
  927.  
  928. #--------------------------------------------------------------------
  929. #   see if "bool" is a builtin type
  930. #--------------------------------------------------------------------
  931.  
  932. ac_ext=C
  933. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  934. ac_cpp='$CXXCPP $CPPFLAGS'
  935. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  936. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  937. cross_compiling=$ac_cv_prog_cxx_cross
  938.  
  939.  
  940. echo $ac_n "checking builtin bool type""... $ac_c" 1>&6
  941. echo "configure:942: checking builtin bool type" >&5
  942. cat > conftest.$ac_ext <<EOF
  943. #line 944 "configure"
  944. #include "confdefs.h"
  945.  
  946. int main() {
  947.  
  948. bool some_boolean_value = true;
  949.  
  950. ; return 0; }
  951. EOF
  952. if { (eval echo configure:953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  953.   rm -rf conftest*
  954.   
  955. CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DTYPE_bool"
  956. echo "$ac_t""yes" 1>&6
  957.  
  958. else
  959.   echo "configure: failed program was:" >&5
  960.   cat conftest.$ac_ext >&5
  961.   rm -rf conftest*
  962.   
  963. echo "$ac_t""no" 1>&6
  964.  
  965. fi
  966. rm -f conftest*
  967.  
  968.  
  969. # echo the compiler we are using
  970.  
  971. echo $ac_n "checking for the compiler to use""... $ac_c" 1>&6
  972. echo "configure:973: checking for the compiler to use" >&5
  973. echo "$ac_t""$CC." 1>&6
  974.  
  975.  
  976. # defaults under UNIX
  977.  
  978. ERASE="rm -f"
  979. O=o
  980. EXECUTABLE=jikes
  981.  
  982.  
  983.  
  984. # Figure out what platform we are running on so that we know
  985. # what flags to give to the compiler
  986.  
  987.  
  988. # Keep case statements in alphabetical order.
  989. case "`uname -s`" in
  990.     AIX)
  991.         if test $CC_NAME = icc; then
  992.             CCREQUIREDFLAGS="$CCREQUIREDFLAGS -langlvl=ansi -qnotempinc -+ -qinlglue"
  993.             CCDEBUGFLAGS="$CCDEBUGFLAGS -g"
  994.         fi
  995.  
  996.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX -DBIGENDIAN"
  997.         LDFLAGS="$LDFLAGS $LDDEBUGFLAGS"
  998.         ;;
  999.     FreeBSD)
  1000.     CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX -DIEEE_DIV_0 -DGNU_LIBC5 -DNO_WCHAR_H"
  1001.  
  1002.         if test $CC_NAME = "$CXX"; then
  1003.             CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1004.         fi
  1005.  
  1006.     # FreeBSD doesn't have the wchar.h functions yet
  1007.     CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DGNU_LIBC5 -DNO_WCHAR_H"
  1008.  
  1009.     # Check byte-order
  1010.         case "`uname -m`" in
  1011.             alpha)
  1012.                 ;;
  1013.             i?86)
  1014.                 ;;
  1015.             *)
  1016.                 { echo "configure: error: FreeBSD arch '`uname -m`' not supported." 1>&2; exit 1; }
  1017.                 ;;
  1018.         esac
  1019.     ;;
  1020.     HP-UX)
  1021.         if test $CC_NAME = "$CXX"; then
  1022.             CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1023.         fi
  1024.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX -D_INCLUDE_POSIX_SOURCE"
  1025.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -DSTAT_POSIX_1"
  1026.         LDFLAGS="$LDDEBUGFLAGS $LDFLAGS -lstdc++"
  1027.         ;;
  1028.     IRIX)
  1029.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX -DBIGENDIAN"
  1030.         if test ! $GAS = yes; then
  1031.             CCREQUIREDFLAGS="$CCREQUIREDFLAGS -mmips-as"
  1032.         fi
  1033.         ;;
  1034.     Linux)
  1035.     CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX"
  1036.  
  1037.         if test $CC_NAME = "$CXX"; then
  1038.             CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1039.         fi
  1040.  
  1041.         case "`uname -m`" in
  1042.             alpha)
  1043.                 ;;
  1044.             i?86)
  1045.                 ;;
  1046.         mips)
  1047.         ;;
  1048.             m68k)
  1049.                 CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN"
  1050.                 ;;
  1051.             ppc)
  1052.                 CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN"
  1053.                 ;;
  1054.             sparc)
  1055.                 CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN"
  1056.                 ;;
  1057.             *)
  1058.                 { echo "configure: error: Linux arch '`uname -m`' not supported." 1>&2; exit 1; }
  1059.                 ;;
  1060.         esac
  1061.         
  1062.         # test to see if we are using libc5 or gnulib5 (libc6)
  1063.         if test -f /lib/libc.so.5 && test ! -f /lib/libc.so.6; then
  1064.             CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DGNU_LIBC5"
  1065.         else
  1066.             CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DSTAT_POSIX"
  1067.         fi
  1068.         ;;
  1069.     OS2)
  1070.         if test $CC_NAME = icc; then
  1071.            O=obj
  1072.            CCREQUIREDFLAGS="-Tdp -G5 $CCREQUIREDFLAGS -DUNIX_FILE_SYSTEM -Dcerr=cout"
  1073.            CCOPTFLAGS="$CCOPTFLAGS -Tdp -O -DNDEBUG"
  1074.            CCDEBUGFLAGS="$CCDEBUGFLAGS -Ti"
  1075.            LDDEBUGFLAGS="/Ti+"
  1076.            LDFLAGS="$LDFLAGS /O:\$(EXECUTABLE) /PM:VIO /STACK:400000 /NOE"
  1077.  
  1078.            # link to an obj file in the icc directory
  1079.            TMP=$CC
  1080.            TMP=`dirname $TMP`
  1081.            TMP=`dirname $TMP`
  1082.            SYSOBJECTS="$TMP\\lib\\setargv.obj"
  1083.         fi    
  1084.         ;;
  1085.     OSF1)
  1086.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX"
  1087.         ;;
  1088.     SunOS)
  1089.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DUNIX -DBIGENDIAN"
  1090.  
  1091.         case "$CC_NAME" in
  1092.             "$CXX")
  1093.                 CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1094.                 ;;
  1095.             icc)
  1096.                 CCREQUIREDFLAGS="-langlvl=ansi -+ -qnotempinc $CCREQUIREDFLAGS"
  1097.                 CCOPTFLAGS="$CCOPTFLAGS -O3 -qstrict"
  1098.                 CCDEBUGFLAGS="$CCDEBUGFLAGS -g"
  1099.                 LDFLAGS="$LDFLAGS -Bstatic"
  1100.                 ;;
  1101.         esac
  1102.     ;;
  1103.     AmigaOS)
  1104.         CCREQUIREDFLAGS="$CCREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir"
  1105.     SYSOBJECTS="-noixemul"
  1106.  
  1107.         case "$CC_NAME" in
  1108.             ?++)
  1109.                 CCREQUIREDFLAGS="-funsigned-char $CCREQUIREDFLAGS"
  1110.                 ;;
  1111.         esac
  1112.     ;;
  1113.     *)
  1114.         { echo "configure: error: platform '`uname -s`' is not supported." 1>&2; exit 1; }
  1115.         ;;
  1116. esac
  1117.  
  1118.  
  1119. #--------------------------------------------------------------------
  1120. #    see if --enable-symbols was given, if so use debug symbols
  1121. #--------------------------------------------------------------------
  1122.  
  1123. # Check whether --enable-symbols or --disable-symbols was given.
  1124. if test "${enable_symbols+set}" = set; then
  1125.   enableval="$enable_symbols"
  1126.   DEBUG_SYMBOLS=$enableval
  1127. else
  1128.   DEBUG_SYMBOLS=no
  1129. fi
  1130.  
  1131.  
  1132. if test "$DEBUG_SYMBOLS" = "yes"; then
  1133.     CCFLAGS='$(CCREQUIREDFLAGS) $(CCDEBUGFLAGS)'
  1134. else
  1135.     CCFLAGS='$(CCREQUIREDFLAGS) $(CCOPTFLAGS)'
  1136.     LDFLAGS="-s $LDFLAGS"
  1137. fi
  1138.  
  1139.  
  1140. #--------------------------------------------------------------------
  1141. #     Check for libc brokenness (linux libc5, maybe others?) - CSA
  1142. #--------------------------------------------------------------------
  1143. echo $ac_n "checking for a broken wchar.h""... $ac_c" 1>&6
  1144. echo "configure:1145: checking for a broken wchar.h" >&5
  1145. if eval "test \"`echo '$''{'jikes_cv_broken_wchar'+set}'`\" = set"; then
  1146.   echo $ac_n "(cached) $ac_c" 1>&6
  1147. else
  1148.   cat > conftest.$ac_ext <<EOF
  1149. #line 1150 "configure"
  1150. #include "confdefs.h"
  1151. #include <wchar.h>
  1152. int main() {
  1153. wint_t foo;
  1154. ; return 0; }
  1155. EOF
  1156. if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1157.   rm -rf conftest*
  1158.   jikes_cv_broken_wchar=no
  1159. else
  1160.   echo "configure: failed program was:" >&5
  1161.   cat conftest.$ac_ext >&5
  1162.   rm -rf conftest*
  1163.   jikes_cv_broken_wchar=yes
  1164. fi
  1165. rm -f conftest*
  1166. fi
  1167.  
  1168. echo "$ac_t""$jikes_cv_broken_wchar" 1>&6
  1169. if test $jikes_cv_broken_wchar = yes; then
  1170.     cat > conftest.$ac_ext <<EOF
  1171. #line 1172 "configure"
  1172. #include "confdefs.h"
  1173.  
  1174. #include "libc5-fix.h"
  1175. #ifndef __amigaos__
  1176. #include <wchar.h>
  1177. #endif
  1178.  
  1179. int main() {
  1180. wint_t foo;
  1181. ; return 0; }
  1182. EOF
  1183. if { (eval echo configure:1184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1184.   rm -rf conftest*
  1185.   CCREQUIREDFLAGS="$CCREQUIREDFLAGS -include libc5-fix.h"
  1186. else
  1187.   echo "configure: failed program was:" >&5
  1188.   cat conftest.$ac_ext >&5
  1189.   rm -rf conftest*
  1190.   { echo "configure: error: Can't fix broken wchar.h" 1>&2; exit 1; }
  1191. fi
  1192. rm -f conftest*
  1193. fi
  1194.  
  1195. # Subst variables into Makefile.in to produce the Makefile
  1196.  
  1197. BUILD_DIR=`pwd`
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212. trap '' 1 2 15
  1213. cat > confcache <<\EOF
  1214. # This file is a shell script that caches the results of configure
  1215. # tests run on this system so they can be shared between configure
  1216. # scripts and configure runs.  It is not useful on other systems.
  1217. # If it contains results you don't want to keep, you may remove or edit it.
  1218. #
  1219. # By default, configure uses ./config.cache as the cache file,
  1220. # creating it if it does not exist already.  You can give configure
  1221. # the --cache-file=FILE option to use a different cache file; that is
  1222. # what configure does when it calls configure scripts in
  1223. # subdirectories, so they share the cache.
  1224. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1225. # config.status only pays attention to the cache file if you give it the
  1226. # --recheck option to rerun configure.
  1227. #
  1228. EOF
  1229. # The following way of writing the cache mishandles newlines in values,
  1230. # but we know of no workaround that is simple, portable, and efficient.
  1231. # So, don't put newlines in cache variables' values.
  1232. # Ultrix sh set writes to stderr and can't be redirected directly,
  1233. # and sets the high bit in the cache file unless we assign to the vars.
  1234. (set) 2>&1 |
  1235.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1236.   *ac_space=\ *)
  1237.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1238.     # turns \\\\ into \\, and sed turns \\ into \).
  1239.     sed -n \
  1240.       -e "s/'/'\\\\''/g" \
  1241.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1242.     ;;
  1243.   *)
  1244.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1245.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1246.     ;;
  1247.   esac >> confcache
  1248. if cmp -s $cache_file confcache; then
  1249.   :
  1250. else
  1251.   if test -w $cache_file; then
  1252.     echo "updating cache $cache_file"
  1253.     cat confcache > $cache_file
  1254.   else
  1255.     echo "not updating unwritable cache $cache_file"
  1256.   fi
  1257. fi
  1258. rm -f confcache
  1259.  
  1260. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1261.  
  1262. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1263. # Let make expand exec_prefix.
  1264. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1265.  
  1266. # Any assignment to VPATH causes Sun make to only execute
  1267. # the first set of double-colon rules, so remove it if not needed.
  1268. # If there is a colon in the path, we need to keep it.
  1269. if test "x$srcdir" = x.; then
  1270.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1271. fi
  1272.  
  1273. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1274.  
  1275.  
  1276. # Transform confdefs.h into DEFS.
  1277. # Protect against shell expansion while executing Makefile rules.
  1278. # Protect against Makefile macro expansion.
  1279. cat > conftest.defs <<\EOF
  1280. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1281. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1282. s%\[%\\&%g
  1283. s%\]%\\&%g
  1284. s%\$%$$%g
  1285. EOF
  1286. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1287. rm -f conftest.defs
  1288.  
  1289.  
  1290. # Without the "./", some shells look in PATH for config.status.
  1291. : ${CONFIG_STATUS=./config.status}
  1292.  
  1293. echo creating $CONFIG_STATUS
  1294. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1295. # being executed, so just move it out of the way instead.
  1296. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1297. cat > $CONFIG_STATUS <<EOF
  1298. #! /bin/sh
  1299. # Generated automatically by configure.
  1300. # Run this file to recreate the current configuration.
  1301. # This directory was configured as follows,
  1302. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1303. #
  1304. # $0 $ac_configure_args
  1305. #
  1306. # Compiler output produced by configure, useful for debugging
  1307. # configure, is in ./config.log if it exists.
  1308.  
  1309. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1310. for ac_option
  1311. do
  1312.   case "\$ac_option" in
  1313.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1314.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1315.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1316.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1317.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1318.     exit 0 ;;
  1319.   -help | --help | --hel | --he | --h)
  1320.     echo "\$ac_cs_usage"; exit 0 ;;
  1321.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1322.   esac
  1323. done
  1324.  
  1325. ac_given_srcdir=$srcdir
  1326.  
  1327. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1328. EOF
  1329. cat >> $CONFIG_STATUS <<EOF
  1330.  
  1331. # Protect against being on the right side of a sed subst in config.status.
  1332. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1333.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1334. $ac_vpsub
  1335. $extrasub
  1336. s%@SHELL@%$SHELL%g
  1337. s%@CFLAGS@%$CFLAGS%g
  1338. s%@CPPFLAGS@%$CPPFLAGS%g
  1339. s%@CXXFLAGS@%$CXXFLAGS%g
  1340. s%@FFLAGS@%$FFLAGS%g
  1341. s%@DEFS@%$DEFS%g
  1342. s%@LDFLAGS@%$LDFLAGS%g
  1343. s%@LIBS@%$LIBS%g
  1344. s%@exec_prefix@%$exec_prefix%g
  1345. s%@prefix@%$prefix%g
  1346. s%@program_transform_name@%$program_transform_name%g
  1347. s%@bindir@%$bindir%g
  1348. s%@sbindir@%$sbindir%g
  1349. s%@libexecdir@%$libexecdir%g
  1350. s%@datadir@%$datadir%g
  1351. s%@sysconfdir@%$sysconfdir%g
  1352. s%@sharedstatedir@%$sharedstatedir%g
  1353. s%@localstatedir@%$localstatedir%g
  1354. s%@libdir@%$libdir%g
  1355. s%@includedir@%$includedir%g
  1356. s%@oldincludedir@%$oldincludedir%g
  1357. s%@infodir@%$infodir%g
  1358. s%@guidedir@%$guidedir%g
  1359. s%@htmldir@%$htmldir%g
  1360. s%@psdir@%$psdir%g
  1361. s%@dvidir@%$dvidir%g
  1362. s%@mandir@%$mandir%g
  1363. s%@CC@%$CC%g
  1364. s%@CXX@%$CXX%g
  1365. s%@BUILD_DIR@%$BUILD_DIR%g
  1366. s%@CCREQUIREDFLAGS@%$CCREQUIREDFLAGS%g
  1367. s%@CCDEBUGFLAGS@%$CCDEBUGFLAGS%g
  1368. s%@CCOPTFLAGS@%$CCOPTFLAGS%g
  1369. s%@CCFLAGS@%$CCFLAGS%g
  1370. s%@ERASE@%$ERASE%g
  1371. s%@EXECUTABLE@%$EXECUTABLE%g
  1372. s%@LD@%$LD%g
  1373. s%@O@%$O%g
  1374. s%@SYSOBJECTS@%$SYSOBJECTS%g
  1375.  
  1376. CEOF
  1377. EOF
  1378.  
  1379. cat >> $CONFIG_STATUS <<\EOF
  1380.  
  1381. # Split the substitutions into bite-sized pieces for seds with
  1382. # small command number limits, like on Digital OSF/1 and HP-UX.
  1383. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1384. ac_file=1 # Number of current file.
  1385. ac_beg=1 # First line for current file.
  1386. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1387. ac_more_lines=:
  1388. ac_sed_cmds=""
  1389. while $ac_more_lines; do
  1390.   if test $ac_beg -gt 1; then
  1391.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1392.   else
  1393.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1394.   fi
  1395.   if test ! -s conftest.s$ac_file; then
  1396.     ac_more_lines=false
  1397.     rm -f conftest.s$ac_file
  1398.   else
  1399.     if test -z "$ac_sed_cmds"; then
  1400.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1401.     else
  1402.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1403.     fi
  1404.     ac_file=`expr $ac_file + 1`
  1405.     ac_beg=$ac_end
  1406.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1407.   fi
  1408. done
  1409. if test -z "$ac_sed_cmds"; then
  1410.   ac_sed_cmds=cat
  1411. fi
  1412. EOF
  1413.  
  1414. cat >> $CONFIG_STATUS <<EOF
  1415.  
  1416. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1417. EOF
  1418. cat >> $CONFIG_STATUS <<\EOF
  1419. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1420.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1421.   case "$ac_file" in
  1422.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1423.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1424.   *) ac_file_in="${ac_file}.in" ;;
  1425.   esac
  1426.  
  1427.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1428.  
  1429.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1430.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1431.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1432.     # The file is in a subdirectory.
  1433.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1434.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1435.     # A "../" for each directory in $ac_dir_suffix.
  1436.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1437.   else
  1438.     ac_dir_suffix= ac_dots=
  1439.   fi
  1440.  
  1441.   case "$ac_given_srcdir" in
  1442.   .)  srcdir=.
  1443.       if test -z "$ac_dots"; then top_srcdir=.
  1444.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1445.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1446.   *) # Relative path.
  1447.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1448.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1449.   esac
  1450.  
  1451.  
  1452.   echo creating "$ac_file"
  1453.   rm -f "$ac_file"
  1454.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1455.   case "$ac_file" in
  1456.   *Makefile*) ac_comsub="1i\\
  1457. # $configure_input" ;;
  1458.   *) ac_comsub= ;;
  1459.   esac
  1460.  
  1461.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1462.   sed -e "$ac_comsub
  1463. s%@configure_input@%$configure_input%g
  1464. s%@srcdir@%$srcdir%g
  1465. s%@top_srcdir@%$top_srcdir%g
  1466. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1467. fi; done
  1468. rm -f conftest.s*
  1469.  
  1470. EOF
  1471. cat >> $CONFIG_STATUS <<EOF
  1472.  
  1473. EOF
  1474. cat >> $CONFIG_STATUS <<\EOF
  1475.  
  1476. exit 0
  1477. EOF
  1478. chmod +x $CONFIG_STATUS
  1479. rm -f CONFIG.STATUS.old
  1480. rm -fr confdefs* $ac_clean_files
  1481. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1482.  
  1483.